package command.example;

/**
 * @Author：LJ
 * @Description：接头人
 * @Date: 2017/11/30
 * @Modified By:
 */
public class Invoker {
    private Command command;

    //设置命令
    public void setCommand(Command command) {
        this.command = command;
    }
    //执行命令
    public void action(){
        command.execute();
    }
}
